# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo12
# Description:
# Author:       98745
# Date:         2019/3/12
#-------------------------------------------------------------------------------

import numpy
import matplotlib.pyplot as plt
n=8
a=numpy.random.random(n)
b=numpy.random.random(n)
plt.bar(range(n),a,color='b',hatch='x')
plt.bar(range(n),a+b,bottom=a,color='r',hatch='*')

plt.show()
